Run workflow on an Ubuntu 22.04 host #130
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes: #127
Explicitly specify the build host to be Ubuntu 22.04 in the Github workflow file. Before this PR, it was
ubuntu-latest
, which recently was switched in the Github runners from 22.04 to 24.04 => actions/runner-images#10636I believe that's the reason the builds broke. This in combination with a potential snapcraft bug/missing feature. The PPA archive specified in the snapcraft.yaml file for Elmer has packages only up to 22.04. It would seem that there is no way for a PPA declared in snapcraft.yaml to specify the suite. It runs by default on that of the host. As such, with snapcraft running on Ubuntu 24.04, it searches for an Elmer PPA package for 24.04. As it's not available, snapcraft's build stage will fail.
The snap was built on my fork from this branch, apparently with no errors: https://github.com/furgo16/FreeCAD-snap/actions/runs/11340302051